From f7ec9c98ef0ef8740c93f96af9d971b0211118c1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 4 Feb 2016 17:22:39 +0100 Subject: [PATCH] widget: Set a css name Now selecting a widget by class name no longer works. This is probably most relevant for users outside of GTK that want to style their own widgets. Those widgets should now either add their own style classes (if they want to adjust existing CSS) or use gtk_widget_class_set_css_name() themselves (if they want to get rid of all "upstream" styling). --- gtk/gtkwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 3b7b062436..bc1f78627f 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -3670,6 +3670,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS GTK_PARAM_READABLE)); gtk_widget_class_set_accessible_type (klass, GTK_TYPE_WIDGET_ACCESSIBLE); + gtk_widget_class_set_css_name (klass, "widget"); } static void -- 2.30.2